<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:69:"D:\phpStudy\WWW\oa\public/../application/index\view\myself\index.html";i:1512719918;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>网站信息</title>
    <link rel="stylesheet" href="__CSS__/pintuer.css">
    <link rel="stylesheet" href="__CSS__/admin.css">
    <link rel="stylesheet" href="__STATIC__/css/layui.css">
    <script src="__STATIC__/layui.js"></script>
    <script src="__JS__/jquery.js"></script>
    <script src="__JS__/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 个人信息</strong>&emsp;<a
            style="color: #3a4bfb;font-weight: bold " href="javascript:history.go(-1)">返回上一步</a></div>
    <div class="body-content">
        <form class="layui-form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">姓名：</label>
                    <div class="layui-input-block">
                        <input value="<?php echo $list['id']; ?>" type="hidden" name="id">
                        <input name="ch_name" disabled="disabled" lay-verify="required" autocomplete="off"
                               placeholder="请输入姓名" value="<?php echo $list['ch_name']; ?>" class="layui-input" type="text">
                    </div>
                </div>
                <div style="margin-left: 3.5%" class="layui-inline">
                    <label class="layui-form-label">姓名拼音：</label>
                    <div style="margin-top: 10px;margin-left: 35%" class="layui-input-block">
                        <input name="en_name" disabled="disabled" lay-verify="required|pinyin" autocomplete="off"
                               value="<?php echo $list['en_name']; ?>" placeholder="请输入姓名拼音" class="layui-input" type="text">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">角色：</label>
                <div class="layui-input-block">
                    <?php if(is_array($role) || $role instanceof \think\Collection || $role instanceof \think\Paginator): $i = 0; $__LIST__ = $role;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rol): $mod = ($i % 2 );++$i;if($rol['state'] == 1): ?>
                    <input disabled="disabled" type="checkbox" checked="checked" title="<?php echo $rol['role']; ?>" name="<?php echo $rol['id']; ?>">
                    <?php else: ?>
                    <input disabled="disabled" type="checkbox" title="<?php echo $rol['role']; ?>" name="<?php echo $rol['id']; ?>">
                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">区域：</label>
                    <div style="margin-left: 30px" class="layui-input-inline">
                        <select disabled="disabled" lay-verify="required" lay-filter="region_id" id="region_id"
                                name="region_id">
                            <option value="<?php echo $region['id']; ?>"><?php echo $region['region']; ?></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">部门：</label>
                    <div id="branch" class="layui-input-inline">
                        <select disabled="disabled" name="branch_id" lay-filter="branch_id" id="branch_id"
                                lay-verify="required">
                            <option value="<?php echo $branch['id']; ?>"><?php echo $branch['branch']; ?></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">职位：</label>
                    <div style="margin-left: 34%" class="layui-input-block">
                        <?php if($list['position'] == null): ?>
                        <input type="text" placeholder="要担任的职位" lay-verify="required" class="layui-input"
                               value="<?php echo $list['position']; ?>" name="position"/>
                        <?php else: ?>
                        <input disabled="disabled" type="text" placeholder="要担任的职位" lay-verify="required"
                               class="layui-input" value="<?php echo $list['position']; ?>" name="position"/>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">email：</label>
                    <div style="margin-left: 30px" class="layui-input-inline">
                        <input disabled="disabled" name="email" placeholder="请输入你的邮箱" value="<?php echo $list['email']; ?>"
                               lay-verify="required|email" autocomplete="off" placeholder="" class="layui-input"
                               type="text">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">验证手机</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        <?php if($list['tel'] == null): ?>
                        <input name="tel" placeholder="请输入手机号" value="<?php echo $list['tel']; ?>" lay-verify="phone" autocomplete="off"
                               class="layui-input" type="tel">
                        <?php else: ?>
                        <input name="tel" disabled="disabled" placeholder="请输入手机号" value="<?php echo $list['tel']; ?>"
                               lay-verify="phone" autocomplete="off" class="layui-input" type="tel">
                        <?php endif; ?>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">家庭电话：</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        <?php if($list['tel'] == null): ?>
                        <input name="home_tel" placeholder="请输入家庭电话" value="<?php echo $list['home_tel']; ?>" lay-verify="number"
                               autocomplete="off" class="layui-input" type="text">
                        <?php else: ?>
                        <input disabled="disabled" name="home_tel" placeholder="请输入家庭电话" value="<?php echo $list['home_tel']; ?>"
                               lay-verify="number" autocomplete="off" class="layui-input" type="text">
                        <?php endif; ?>

                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">验证身份证：</label>
                <div class="layui-input-block">
                    <?php if($list['identity_card'] == null): ?>
                    <input name="identity_card" value="<?php echo $list['identity_card']; ?>" placeholder="请输入验证身份证号"
                           lay-verify="identity" autocomplete="off" class="layui-input" type="text">
                    <?php else: ?>
                    <input disabled="disabled" name="identity_card" value="<?php echo $list['identity_card']; ?>"
                           placeholder="请输入验证身份证号" lay-verify="identity" autocomplete="off" class="layui-input"
                           type="text">
                    <?php endif; ?>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">密码：</label>
                    <div style="margin-left: 30px" ; class="layui-input-inline">
                        <input disabled="disabled" type="password" value="<?php echo $list['password']; ?>" placeholder="请输入密码"
                               autocomplete="off" class="layui-input" name="password"/>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">出生日期：</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        <?php if($list['borndata'] == null): ?>
                        <input name="borndata" value="<?php echo $list['borndata']; ?>" id="borndata" lay-verify="date"
                               placeholder="yyyy-MM-dd" class="layui-input" type="text">
                        <?php else: ?>
                        <input disabled="disabled" name="borndata" value="<?php echo $list['borndata']; ?>" id="borndata"
                               lay-verify="date" placeholder="yyyy-MM-dd" class="layui-input" type="text">
                        <?php endif; ?>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">性别：</label>
                    <div class="layui-input-inline">
                        <?php if($list['sex'] == null): ?>
                        <select name="sex" lay-search="">
                            <option selected="selected" value="0">请选择性别</option>
                            <option value="1">男</option>
                            <option value="2">女</option>
                        </select>
                        <?php else: ?>
                        <select disabled="disabled" name="sex">
                            <?php if($list['sex'] == 1): ?>
                            <option value="0">请选择性别</option>
                            <option selected="selected" value="1">男</option>
                            <option value="2">女</option>
                            <?php elseif($list['sex'] == 2): ?>
                            <option value="0">请选择性别</option>
                            <option value="1">男</option>
                            <option selected="selected" value="2">女</option>
                            <?php else: ?>
                            <option selected="selected" value="0">请选择性别</option>
                            <option value="1">男</option>
                            <option value="2">女</option>
                            <?php endif; ?>
                        </select>
                        <?php endif; ?>

                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">出生地：</label>
                <div class="layui-input-block">
                    <?php if($list['born'] == null): ?>
                    <input name="born" lay-verify="title" value="<?php echo $list['born']; ?>" autocomplete="off" placeholder="请输入出生地"
                           class="layui-input" type="text">
                    <?php else: ?>
                    <input disabled="disabled" name="born" lay-verify="title" value="<?php echo $list['born']; ?>" autocomplete="off"
                           placeholder="请输入出生地" class="layui-input" type="text">
                    <?php endif; ?>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">户籍地址：</label>
                <div class="layui-input-block">
                    <?php if($list['place_adress'] == null): ?>
                    <input name="place_adress" value="<?php echo $list['place_adress']; ?>" lay-verify="title" autocomplete="off"
                           placeholder="请输入户籍地址" class="layui-input" type="text">
                    <?php else: ?>
                    <input disabled="disabled" name="place_adress" value="<?php echo $list['place_adress']; ?>" lay-verify="title"
                           autocomplete="off" placeholder="请输入户籍地址" class="layui-input" type="text">
                    <?php endif; ?>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">通讯地址：</label>
                <div class="layui-input-block">
                    <?php if($list['adress'] == null): ?>
                    <input name="adress" value="<?php echo $list['adress']; ?>" lay-verify="title" autocomplete="off"
                           placeholder="请输入通讯地址" class="layui-input" type="text">
                    <?php else: ?>
                    <input disabled="disabled" name="adress" value="<?php echo $list['adress']; ?>" lay-verify="title"
                           autocomplete="off" placeholder="请输入通讯地址" class="layui-input" type="text">
                    <?php endif; ?>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">户籍邮政编码：</label>
                    <div style="margin-top: 10px" class="layui-input-block">
                        <?php if($list['place_zip_code'] == null): ?>
                        <input name="place_zip_code" value="<?php echo $list['place_zip_code']; ?>" lay-verify="title"
                               autocomplete="off" placeholder="请输入户籍邮政编码" class="layui-input" type="text">
                        <?php else: ?>
                        <input disabled="disabled" name="place_zip_code" value="<?php echo $list['place_zip_code']; ?>"
                               lay-verify="title" autocomplete="off" placeholder="请输入户籍邮政编码" class="layui-input"
                               type="text">
                        <?php endif; ?>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">通讯邮政编码：</label>
                    <div style="margin-top: 10px;margin-left: 34%" class="layui-input-block">
                        <?php if($list['zip_code'] == null): ?>
                        <input name="zip_code" value="<?php echo $list['zip_code']; ?>" lay-verify="title" autocomplete="off"
                               placeholder="请输入通讯邮政编码" class="layui-input" type="text">
                        <?php else: ?>
                        <input disabled="disabled" name="zip_code" value="<?php echo $list['zip_code']; ?>" lay-verify="title"
                               autocomplete="off" placeholder="请输入通讯邮政编码" class="layui-input" type="text">
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">学历：</label>
                    <div  class="layui-input-block">
                        <?php if($list['education'] == null): ?>
                        <input name="education" value="<?php echo $list['education']; ?>" placeholder="请填写你的学历" lay-verify="title"
                               autocomplete="off" placeholder="" class="layui-input" type="text">
                        <?php else: ?>
                        <input disabled="disabled" name="education" value="<?php echo $list['education']; ?>" placeholder="请填写你的学历"
                               lay-verify="title" autocomplete="off" placeholder="" class="layui-input" type="text">
                        <?php endif; ?>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">政治面貌：</label>
                    <div style="margin-top: 10px;margin-left: 34%" class="layui-input-block">
                        <?php if($list['political_status'] == null): ?>
                        <input name="political_status" value="<?php echo $list['political_status']; ?>" placeholder="请填写你的政治面貌"
                               lay-verify="title" autocomplete="off" placeholder="" class="layui-input" type="text">
                        <?php else: ?>
                        <input disabled="disabled" name="political_status" value="<?php echo $list['political_status']; ?>"
                               placeholder="请填写你的政治面貌" lay-verify="title" autocomplete="off" placeholder=""
                               class="layui-input" type="text">
                        <?php endif; ?>
                    </div>
                </div>

            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">紧急联系人：</label>
                    <div class="layui-input-block">
                        <?php if($list['exi_people'] == null): ?>
                        <input name="exi_people" value="<?php echo $list['exi_people']; ?>" lay-verify="title" autocomplete="off"
                               placeholder="请填写你的紧急联系人" class="layui-input" type="text">
                        <?php else: ?>
                        <input disabled="disabled" name="exi_people" value="<?php echo $list['exi_people']; ?>" lay-verify="title"
                               autocomplete="off" placeholder="请填写你的紧急联系人" class="layui-input" type="text">
                        <?php endif; ?>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">紧急联系人电话：</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        <?php if($list['exi_tel'] == null): ?>
                        <input name="exi_tel" value="<?php echo $list['exi_tel']; ?>" placeholder="请填写你的紧急联系人电话" lay-verify="numbers"
                               autocomplete="off" class="layui-input" type="text">
                        <?php else: ?>
                        <input disabled="disabled" name="exi_tel" value="<?php echo $list['exi_tel']; ?>" placeholder="请填写你的紧急联系人电话"
                               lay-verify="numbers" autocomplete="off" class="layui-input" type="text">
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">与紧急联系人的关系：</label>
                <div class="layui-input-block">
                    <?php if($list['relative'] == null): ?>
                    <textarea placeholder="请填写本人与紧急联系人的关系" class="layui-textarea"
                              name="relative"><?php echo $list['relative']; ?></textarea>
                    <?php else: ?>
                    <textarea disabled="disabled" placeholder="请填写本人与紧急联系人的关系" class="layui-textarea" name="relative"><?php echo $list['relative']; ?></textarea>
                    <?php endif; ?>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">健康状况：</label>
                    <div style="margin-top: 10px" class="layui-input-block">
                        <?php if($list['condition'] == null): ?>
                        <input type="text" value="<?php echo $list['condition']; ?>" lay-verify="title" placeholder="请填写你的健康状况"
                               class="layui-input" name="condition"/>
                        <?php else: ?>
                        <input disabled="disabled" type="text" value="<?php echo $list['condition']; ?>" lay-verify="title"
                               placeholder="请填写你的健康状况" class="layui-input" name="condition"/>
                        <?php endif; ?>
                    </div>
                </div>
                <div style="margin-left: 4%" class="layui-inline">
                    <label class="layui-form-label">既往病史：</label>
                    <div style="margin-top: 10px; margin-left: 34%" class="layui-input-block">
                        <?php if($list['anamnesis'] == null): ?>
                        <input type="text" lay-verify="title" placeholder="请填写你的既往病史" class="layui-input"
                               value="<?php echo $list['anamnesis']; ?>" name="anamnesis"/>
                        <?php else: ?>
                        <input disabled="disabled" type="text" lay-verify="title" placeholder="请填写你的既往病史"
                               class="layui-input" value="<?php echo $list['anamnesis']; ?>" name="anamnesis"/>
                        <?php endif; ?>
                    </div>
                </div>
                <div style="margin-left: 3.5%" class="layui-inline">
                    <label class="layui-form-label">婚育情况：</label>
                    <div style="margin-top: 10px;margin-left: 34%" class="layui-input-block">
                        <?php if($list['status'] == null): ?>
                        <input type="text" placeholder="请填写你的婚育情况" lay-verify="title" class="layui-input"
                               value="<?php echo $list['status']; ?>" name="status"/>
                        <?php else: ?>
                        <input disabled="disabled" type="text" placeholder="请填写你的婚育情况" lay-verify="title"
                               class="layui-input" value="<?php echo $list['status']; ?>" name="status"/>
                        <?php endif; ?>
                    </div>
                </div>

            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">相关经验：</label>
                    <div style="margin-left: 30px;margin-top: 10px" class="layui-input-inline">
                        <?php if($list['experience'] == null): ?>
                        <select name="experience">
                            <option selected="selected" value="0">请选择是否有经验</option>
                            <option value="1">有</option>
                            <option value="2">无</option>
                        </select>
                        <?php else: ?>
                        <select disabled="disabled" name="experience">
                            <?php if($list['experience'] == 1): ?>
                            <option value="0">请选择是否有经验</option>
                            <option selected="selected" value="1">有</option>
                            <option value="2">无</option>
                            <?php elseif($list['experience'] == 2): ?>
                            <option value="0">请选择是否有经验</option>
                            <option value="1">有</option>
                            <option selected="selected" value="2">无</option>
                            <?php else: ?>
                            <option selected="selected" value="0">请选择是否有经验</option>
                            <option value="1">有</option>
                            <option value="2">无</option>
                            <?php endif; ?>
                        </select>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">入职时间：</label>
                    <div style="margin-top: 10px" class="layui-input-inline">
                        <?php if($list['entry_time'] == null): ?>
                        <input name="entry_time" value="<?php echo $list['entry_time']; ?>" id="entry_time" lay-verify="date"
                               placeholder="yyyy-MM-dd" class="layui-input" type="text">
                        <?php else: ?>
                        <input disabled="disabled" name="entry_time" value="<?php echo $list['entry_time']; ?>" id="entry_time"
                               lay-verify="date" placeholder="yyyy-MM-dd" class="layui-input" type="text">
                        <?php endif; ?>
                    </div>
                </div>

            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">原社保缴纳至：</label>
                    <div style="margin-top: 15px;margin-left: 30px" class="layui-input-inline">
                        <?php if($list['old_firm'] == null): ?>
                        <select name="old_firm">
                            <?php if(is_array($month) || $month instanceof \think\Collection || $month instanceof \think\Paginator): $i = 0; $__LIST__ = $month;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$mo): $mod = ($i % 2 );++$i;?>
                            <option value="<?php echo $mo['id']; ?>"><?php echo $mo['month']; ?></option>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>
                        <?php else: ?>
                        <select disabled="disabled" name="old_firm">
                            <?php if(is_array($month) || $month instanceof \think\Collection || $month instanceof \think\Paginator): $i = 0; $__LIST__ = $month;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$mo): $mod = ($i % 2 );++$i;if($list['old_firm'] == $mo['id']): ?>
                            <option selected="selected" value="<?php echo $mo['id']; ?>"><?php echo $mo['month']; ?></option>
                            <?php else: ?>
                            <option value="<?php echo $mo['id']; ?>"><?php echo $mo['month']; ?></option>
                            <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                        </select>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="layui-inline">
                    <label style="padding-top: 1px" class="layui-form-label">是否开户：</label>
                    <div  class="layui-input-inline">
                        <?php if($list['need'] == null): ?>
                        <select name="need">
                            <option selected="selected" value="0">请选择是否开新户</option>
                            <option value="1">需要</option>
                            <option value="2">不需要</option>
                        </select>
                        <?php else: ?>
                        <select disabled="disabled" name="need">
                            <?php if($list['need'] == 1): ?>
                            <option selected="selected" value="1">需要</option>
                            <?php else: ?>
                            <option selected="selected" value="2">不需要</option>
                            <?php endif; ?>
                        </select>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="layui-inline">
                    <label style="padding-top: 1px" class="layui-form-label">公积金账号：</label>
                    <div style="margin-left: 34%;" class="layui-input-block">
                        <?php if($list['account_number'] == null): ?>
                        <input type="text" lay-verify="title" placeholder="请输入公积金账号" class="layui-input"
                               value="<?php echo $list['account_number']; ?>" name="account_number">
                        <?php else: ?>
                        <input disabled="disabled" type="text" lay-verify="title" placeholder="请输入公积金账号"
                               class="layui-input" value="<?php echo $list['account_number']; ?>" name="account_number">
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">有无熟人在公司：</label>
                    <div style="margin-left: 30px;margin-top: 20px" class="layui-input-inline">
                        <?php if($list['friend'] == null): ?>
                        <select name="friend">
                            <option selected="selected" value="0">请选择有无熟人在公司</option>
                            <option value="1">有</option>
                            <option value="2">无</option>
                        </select>
                        <?php else: ?>
                        <select disabled="disabled" name="friend">
                            <?php if($list['need'] == 1): ?>
                            <option selected="selected" value="1">有</option>
                            <?php else: ?>
                            <option selected="selected" value="2">无</option>
                            <?php endif; ?>
                        </select>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">姓名：</label>
                    <div class="layui-input-block">
                        <?php if($list['friend_name'] == null): ?>
                        <input lay-verify="title" placeholder="请输入他的名字" class="layui-input" value="<?php echo $list['friend_name']; ?>"
                               name="friend_name" type="text">
                        <?php else: ?>
                        <input disabled="disabled" lay-verify="title" placeholder="请输入他的名字" class="layui-input"
                               value="<?php echo $list['friend_name']; ?>" name="friend_name" type="text">
                        <?php endif; ?>
                    </div>
                </div>
                <div style="margin-left: 4%" class="layui-inline">
                    <label class="layui-form-label">所在部门：</label>
                    <div style="margin-top: 10px;margin-left: 35%" class="layui-input-block">
                        <?php if($list['friend_branch'] == null): ?>
                        <input lay-verify="title" placeholder="请输入他所在部门" class="layui-input"
                               value="<?php echo $list['friend_branch']; ?>" name="friend_branch" type="text">
                        <?php else: ?>
                        <input disabled="disabled" lay-verify="title" placeholder="请输入他所在部门" class="layui-input"
                               value="<?php echo $list['friend_branch']; ?>" name="friend_branch" type="text">
                        <?php endif; ?>
                    </div>
                </div>
                <div style="margin-left: 4%" class="layui-inline">
                    <label class="layui-form-label">职位：</label>
                    <div style="margin-left: 34%;" class="layui-input-block">
                        <?php if($list['friend_position'] == null): ?>
                        <input lay-verify="title" placeholder="请输入他所担任职位" class="layui-input"
                               value="<?php echo $list['friend_position']; ?>" name="friend_position" type="text">
                        <?php else: ?>
                        <input disabled="disabled" lay-verify="title" placeholder="请输入他所担任职位" class="layui-input"
                               value="<?php echo $list['friend_position']; ?>" name="friend_position" type="text">
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">详述你们的关系：</label>
                <div class="layui-input-block">
                    <?php if($list['friend_relation'] == null): ?>
                    <textarea placeholder="请输入内容" class="layui-textarea"
                              name="friend_relation"><?php echo $list['friend_relation']; ?></textarea>
                    <?php else: ?>
                    <textarea disabled="disabled" placeholder="请输入内容" class="layui-textarea" name="friend_relation"><?php echo $list['friend_relation']; ?></textarea>
                    <?php endif; ?>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button name="submit" value="submit" class="layui-btn" lay-submit="" lay-filter="demo">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
<script type="text/javascript" src="__JS__/showdate.js"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate;
        //三级联动
        /* var proid=0;
         $.getJSON("<?php echo url('Base/liandong_a'); ?>",function (data_a) {
         //console.log(data.datalist);
         $.each(data_a.datalist,function (i,item) {
         if (i==0){
         proid = item.id;
         }
         $('#region_id').append('<option value='+item.id+'>'+item.region+'</option>');
         });
         $.getJSON("<?php echo url('Base/liandong_b'); ?>?region_id="+proid,function (data_b) {
         $.each(data_b.datalist,function (i,item) {
         $('#branch_id').append('<option value='+item.id+'>'+item.branch+'</option>')
         });
         form.render('select');
         })
         });
         form.on('select(region_id)',function (data_aa) {
         var region_ids=data_aa.value;
         $('#branch_id').html('');
         $.getJSON("<?php echo url('Base/liandong_b'); ?>?region_id="+region_ids,function (data_bb) {
         $.each(data_bb.datalist, function (i, item) {
         $('#branch_id').append('<option  value=' + item.id + '>' + item.branch + "</option>");
         });
         form.render('select');
         })
         });*/
        //日期entry_time
        laydate.render({
         elem: '#borndata'
         });
         laydate.render({
         elem: '#entry_time'
         });
         //监听自定义验证
         form.verify({
         number: [/^([0-9]{3,4}-)?[0-9]{7,8}$/, '请输入正确的座机号码']
         ,numbers:[/^([0-9]{3,4}-)?[0-9]{7,8}|^1\d{10}$/, '请输入正确的座机号码或手机号']
         ,pinyin:[/^[A-Za-z]*$/,'请输入拼音']
         });
        //监听提交
         form.on('submit(demo)', function(data_d){
         // console.log(JSON.stringify(data.field));
         /*layer.alert(JSON.stringify(data.field), {
         title: '最终的提交信息'
         });*/
         var datas=JSON.stringify(data_d.field);
         //console.log(datas);
         var submit='submit';
         $.ajax({
         type: "post",
         url:"<?php echo url('Staffsaves/newstaff'); ?>",
         data:{'data':datas,'submit':submit},
         dataType:"json",
         success: function (res) {
             //console.log(res);
         if (res == 1){
         layer.msg('添加成功');
         window.setTimeout("window.location=admin",2000);
         //window.location.href="<?php echo url('Stafflist/index'); ?>"
         }else {
         if (res == 2){
         layer.msg('提示：中文或英文用户名已被使用');
         }else {
         layer.msg('提示：用户添加失败');
         }
         }
         }
         });

         /* layer.alert(JSON.stringify(data.field), {
         title: '最终的提交信息'
         });*/
         return false;
         });

    })
</script>
</html>